import request from '@/utils/request'
// 登录
export const subLogin = (data) => request.post('/company/main/subLogin', data)
// 退出登录
export const logout = (data) => request.post('/company/main/logout', data)

// 获取-登录用户（/company/main/getLUserInfo）
export const getLUserInfo = (data) => request.post('/company/main/getLUserInfo', data)


//获取-单位指定用户权限列表API（post）/company/menu/getPermiList
export const getPermiList = (data) => request.post('/company/menu/getPermiList', data)

//获取手机验证码（/common/getPhoneCode）content-type:application/x-www-form-urlencoded
export const getPhoneCode = (data) => request.post('/common/getPhoneCode', data, {
    headers: {
        'Content-Type': 'application/x-www-form-urlencoded'
    }
})

//修改登录密码（/common/customers/modifyLoginPass）
export const modifyLoginPass = (data) => request.post('/common/customers/modifyLoginPass', data)

// 修改支付密码（/common/customers/modifyPayPass）
export const modifyPayPass = (data) => request.post('/common/customers/modifyPayPass', data)

// 根据手机号获取当前用户所在的单位员工列表(包含自己的单位)()
export const getCompanyByPhone = (data) => request.post('/company/main/getCompanyByPhone', data)

// 空车列表-座位数分组
export const carScheduleSeatList = (data) => request.post('/company/safetyCenter/carScheduleSeatList', data)

//获取车牌号下拉框(/company/safetyCenter/findCarCombo)
export const findCarCombo = (data) => request.post('/company/safetyCenter/findCarCombo', data)

//获取驾驶员下拉框/company/staffCenter/getDriverList
export const getDriverList = (data) => request.post('/company/staffCenter/getDriverCombo', data)

//营收统计/company/financeCenter/revenueSum，默认不请求接口，选择时间后可以查询
export const revenueSum = (data) => request.post('/company/financeCenter/revenueSum', data)

//获取客户类型下拉框/company/sysManage/findCusTypeCombo
export const findCusTypeCombo = (data) => request.post('/company/sysManage/findCusTypeCombo', data)

//客户下拉
export const serviceCenterfindComboCusList = (data) => request.post('/company/serviceCenter/findComboCusList', data)

//获取业务员列表/company/staffCenter/getServiceMans
export const getServiceMans = (data) => request.post('/company/staffCenter/getServiceMans', data)

//客户订单应收应支查询统计（/company/financeCenter/sumCusGathPay）
export const sumCusGathPay = (data) => request.post('/company/financeCenter/sumCusGathPay', data)

// 添加/修改-用户个性设置数据API（post）/company/privateSet/adupPrivateSet
export const adupPrivateSet = (data) => request.post('/company/privateSet/adupPrivateSet', data)

// 获取-用户个性设置数据列表API（post）/company/privateSet/getPrivateSetList
export const getPrivateSetList = (data) => request.post('/company/privateSet/getPrivateSetList', data)

//获取-托管给我车队下拉框搜索/company/serviceCenter/findTrusteeshipMeCombo
export const findTrusteeshipMeCombo = (data) => request.post('/company/serviceCenter/findTrusteeshipMeCombo', data)
